package com.android.datasave;

import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.drawable.ShapeDrawable;
import android.graphics.drawable.shapes.OvalShape;
import android.view.View;

public class Graphique extends View {
	private ShapeDrawable mDrawable;
	private Paint mPaint;

	public Graphique(Context context) {
		super(context);
		mPaint = new Paint();
		int x = 10;
		int y = 10;
		int width = 300;
		int height = 50;
		mDrawable = new ShapeDrawable(new OvalShape());
		mDrawable.getPaint().setColor(0xff74AC23);
		mDrawable.setBounds(x, y, x + width, y + height);
	}

	@Override
	protected void onDraw(Canvas canvas) {
		super.onDraw(canvas);
			mPaint.setARGB(130, 130, 130, 130);
	        canvas.drawRect(5, 5, 10,10, mPaint);

	}
}
